﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JqlEditor
{
    public partial class FrmHelp : Form
    {
        public FrmHelp()
        {
            InitializeComponent();
        }

        private void FrmHelp_Load(object sender, EventArgs e)
        {
            txtHelp.Text = "1. Ctrl + Z 可以撤销上一步操作" + Environment.NewLine +
                           "2. Ctrl + Shift + Z 或者 Ctrl + Y 可以恢复上一步撤销的操作" + Environment.NewLine +
                           "3. 可以直接将文件拖拽至窗口进行编辑" + Environment.NewLine +
                           "4. 其它所有操作均可以在右键菜单中进行操作";
            Left = Owner.Left - (Width - Owner.Width) / 2;
            Top = Owner.Top - (Height - Owner.Height) / 2;

            btnOK.Focus();
            btnOK.Left = (ClientSize.Width - btnOK.Width) / 2;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
